package com.example.service;

import com.example.entity.Comment;
import com.example.entity.CommentLike;
import com.example.entity.vo.CommentVO;

import java.util.List;

/**
 * @Description: 评论服务层接口
 * @Date: 2022/11/15 16:12
 * @Author: SinkDream
 */
public interface CommentService {

    //根据文章id查询评论信息
    List<CommentVO> listCommentByArticleId(Long articleId);

    //查询评论总数
    int countComment(Long articleId);

    //添加评论
    int addComment(Comment comment);

    //删除评论
    void deleteComment(String[] ids);

    //评论点赞
    int addCommentLike(CommentLike commentLike);

    //取消点赞
    int removeCommentLike(CommentLike commentLike);

    //查询点赞
    List<CommentLike> listCommentLike(Long userId);
}
